import { IParam } from '@/core';
import { IBIZAPPEXTENDEDITORServiceBase } from './ibizappextendeditor-service-base';

/**
 * 扩展编辑器服务
 * 基于template/src/api/{{appEntities}}/data-service/{{appEntities}}-service.ts.hbs生成
 *
 * @export
 * @class IBIZAPPEXTENDEDITORService
 * @extends IBIZAPPEXTENDEDITORServiceBase
 */
export class IBIZAPPEXTENDEDITORService extends IBIZAPPEXTENDEDITORServiceBase {

    /**
     * 基础数据服务实例
     * 
     * @private
     * @type { IBIZAPPEXTENDEDITORService }
     * @memberof IBIZAPPEXTENDEDITORService
     */
    private static basicDataServiceInstance: IBIZAPPEXTENDEDITORService;

    /**
     * 数据服务存储Map对象
     *
     * @private
     * @type {Map<string, any>}
     * @memberof IBIZAPPEXTENDEDITORService
     */
    private static dataServiceMap: Map<string, any> = new Map();

    /**
     * Creates an instance of IBIZAPPEXTENDEDITORService.
     * @memberof IBIZAPPEXTENDEDITORService
     */
    constructor(opts?: IParam) {
        super(opts);
    }

    /**
     * 获取实例
     *
     * @static
     * @param 应用上下文
     * @return {*}  { IBIZAPPEXTENDEDITORService }
     * @memberof IBIZAPPEXTENDEDITORService
     */
    static getInstance(opts?: IParam): IBIZAPPEXTENDEDITORService {
        if (!this.basicDataServiceInstance) {
            this.basicDataServiceInstance = new IBIZAPPEXTENDEDITORService(opts);
        }
        return this.basicDataServiceInstance;
    }
}
export default IBIZAPPEXTENDEDITORService;